import { defineStore } from 'pinia';

export const useDocumentsStore = defineStore('documents', {
  state: () => {
    return {
      orders: []
    }
  },
  actions: {
    getOrders() {
      uni.request({
        url: "/order",
        success: ({ data }) => {
          this.orders = data
          console.log("更新首页")
          console.log(data)
        }
      })
    }
  }
})